class CreateBooks < ActiveRecord::Migration
  def change
    create_table :books do |t|
      t.string :name
      t.string :author
      t.string :publisher
      t.string :description
      t.integer :year
      t.integer :total
      t.integer :remain
      t.integer :total_grade
      t.integer :total_time
      t.string :image_url

      t.timestamps
    end
  end
end
